﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace EBA.IoC
{
    [ConfigurationCollection(typeof(TypeConfigurationElement), AddItemName = "add", CollectionType = ConfigurationElementCollectionType.BasicMap)]
    public class TypeConfigurationElementCollection : ConfigurationElementCollection
    {

        protected override ConfigurationElement CreateNewElement()
        {
            return new TypeConfigurationElement();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((TypeConfigurationElement)element).Type;
        }
    }
}
